﻿#region Using

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using XNgine;
using XNgine.ScreenManagement.StandardScreens;

#endregion

namespace XNgine_Test_Game.GameScreens
{
    public class TextureBackgroundScreen : BackgroundScreen
    {
        public override void Draw()
        {
            Viewport viewport = XEngine.Instance.GraphicsDevice.Viewport;

            Rectangle fullscreen = new Rectangle(0, 0, viewport.Width, viewport.Height);

            byte fade = 255;

            Texture2D tex = XEngine.Instance.Content.Load<Texture2D>("Textures/background");

            XEngine.Instance.SpriteBatch.Begin();
            XEngine.Instance.SpriteBatch.Draw(tex, fullscreen, new Color(fade, fade, fade));
            XEngine.Instance.SpriteBatch.End();
        }

        public override void Update()
        {
        }
    }
}